Instance 0

Centrality↓:10.876020478577889  Specificity↑:0.36787944117144233
Class60.compare(String file1,String file2,BufferedReader in1,BufferedReader in2)#0{
      String s2 = in2.readLine();
      if (!s1.equals(s2)) {
        System.out.println(
          "Files [" + file1 + "] and [" + file2 + "] differ on line "
          + lineCounter);
        System.out.println("One reads:  [" + s1 + "].");
        System.out.println("Other reads:[" + s2 + "].");
        outputFile(file1);
        outputFile(file2);

        return false;
      }
    if (in2.read() != -1) {
      System.out.println(
        "File [" + file2 + "] longer than file [" + file1 + "].");
      outputFile(file1);
      outputFile(file2);

      return false;
    }
}


Instance 1

Centrality↓:10.959794688192718  Specificity↑:1.1417647320527227
Class410.fromRangeReader(BufferedReader rangeFile)#0{
            if(rangeFile.read() == 'x') {
                rangeFile.readLine();    // pass the '\n' after 'x'
                String line = rangeFile.readLine();
                if (line == null) {
                    line = "";
                }
                StringTokenizer st = new StringTokenizer(line);
                double scaledLowerBound = Double.parseDouble(st.nextToken());
                double scaledUpperBound = Double.parseDouble(st.nextToken());
                if(scaledLowerBound != || scaledUpperBound != 1) {
                    throw new RuntimeException("Feature lower bound and upper bound must"
                            "be set in range file to resepctively 0 and 1");
                }
                String restore_line = null;
                List<FeatureLimits> limits = new ArrayList<FeatureLimits>();
                while((restore_line = rangeFile.readLine())!=null)
                {
                    StringTokenizer st2 = new StringTokenizer(restore_line);
                    st2.nextToken()//discard feature index
                    feature_min = Double.parseDouble(st2.nextToken());
                    feature_max = Double.parseDouble(st2.nextToken());
                    FeatureLimits newLimit = new FeatureLimits(feature_min, feature_max);
                    limits.add(newLimit);
                }

                FeatureVectorScalerImpl scaler = new FeatureVectorScalerImpl(limits.size(), scaledLowerBound, scaledUpperBound);
                scaler.setStrategy(new LinearScaling());
                scaler.setFeatureLimits(limits);

                return scaler;
            else {
                throw new RuntimeException("y scaling not supported");
            }
}


Instance 2

Centrality↓:10.443412188302876  Specificity↑:0.7357588823428847
Class590.main(String args[])#0{
          String line = in.readLine();
          if(line.equalsIgnoreCase("getelement"))
          {
            System.out.print("getelement");
            break;
          }
}


Instance 3

Centrality↓:10.439013392927524  Specificity↑:0.8710941655794974
Class620.poll(MonitoredService svc,Map<String,Object> parameters)#2{
                    t = new StringTokenizer(rdr.readLine());
                    if (t.nextToken().equals("+OK")) {
                        serviceStatus = PollStatus.available(responseTime);
                    }
}


Instance 4

Centrality↓:10.523904519709923  Specificity↑:1.103638323514327
Class560.parse(String head,BufferedReader reader)#0{
    int length = Integer.parseInt(head.substring(1, head.length()));
    if(length == -1)
      throw new NullReplyException("NULL Bulk Reply");
    reader.read(value);
    reader.readLine();
}


Instance 5

Centrality↓:10.942249108795474  Specificity↑:1.742188331158995
Class170.decode()#5{
        tag = n.substring("tag ".length());
        n = br.readLine();
        if (n == null)
          throw new CorruptObjectException(tagId, "no tagger header");
        if (n.length()>0)
          if (n.startsWith("tagger "))
            tagger = new PersonIdent(n.substring("tagger ".length()));
          else
            throw new CorruptObjectException(tagId, "no tagger/bad header");
}


Instance 6

Centrality↓:10.794383839649404  Specificity↑:1.8393972058572117
Class390.main(String[] argv)#1{
      String w=in.readLine();
      System.out.println(stem(w));
      if(isPlural(w)) System.out.println("  (Plural)");
      if(isSingular(w)) System.out.println("  (Singular)");
}


Instance 7

Centrality↓:10.937334920124702  Specificity↑:2.110067772330437
Class320.run()#2{
          String line = bufferedReader.readLine();
          if (line == null) {
            break chunk;
          }
          if (line.equals("go")) {
            outWriter.flush();
            InputStream in = new ByteArrayInputStream(out
                .toByteArray());
            runChunk(in);
            continue chunk;
          }
          if (firstLine && line.startsWith("=")) {
            outWriter.write("return " + line.substring(1));
            outWriter.flush();
            InputStream in = new ByteArrayInputStream(out
                .toByteArray());
            runChunk(in);
            continue chunk;
          }
          outWriter.write('\n');
}


Instance 8

Centrality↓:10.400363066934098  Specificity↑:1.8393972058572117
Class300.parsePidFile(File f,BufferedReader br)#0{
        String l = br.readLine();
        if (null == l || "".equals(l.trim())) {
            throw new HBasePidfileParseException("Empty HBase statusfile " + f);
        }
        HBaseStatus stat = new HBaseStatus(f, l.trim());
}


Instance 9

Centrality↓:10.948805129623565  Specificity↑:2.9811619379099343
Class650.readName(final BufferedReader buffered_reader)#3{
    while ((current_char = buffered_reader.read ()) != -&&
           != current_char    // Kaffe 1.00 returns 0 at end of string
           ) {
      if (' ' == current_char ||
          '\n' == current_char ||
          '\r' == current_char ||
          '\t' == current_char) {
        // read a whitespace character so go back to the top of the loop
        continue;
      else {
        if ('/' == current_char) {
          // we have found the start of the qualifier name
          break;
        else {
          // if the character isn't a / or space then something is wrong
          throw new QualifierParseException ("failed to read a qualifier " +
                                             "name from this string: " +
                                             (char)current_char +
                                             buffered_reader.readLine ());
        }
      }
    }
    if (-== current_char ||
        == current_char       // Kaffe 1.00 returns 0 at end of string
        ) {
      // end of file
      return null;
    }
    buffered_reader.mark (1);
}


Instance 10

Centrality↓:10.961723760763771  Specificity↑:3.6197119455546023
Class70.testTransfer(String host,int port,String conOptions)#1{
}


Instance 11

Centrality↓:10.994983851563214  Specificity↑:4.685223860530533
Class260.poll(MonitoredService svc,Map<String,Object> parameters)#0{
                    if (response == null) {
                        continue;
                    }
                    if (MULTILINE.matcher(response).find()) {
                        // Ok we have a multi-line response...first three
                        // chars of the response line are the return code.
                        // The last line of the response will start with
                        // return code followed by a space.
                        String multiLineRC = new String(response.getBytes("ASCII")03"ASCII");

                        // Create new regExp to look for last line
                        // of this multi line response
                        Pattern endMultiline = null;
                        try {
                            endMultiline = Pattern.compile(multiLineRC);
                        catch (PatternSyntaxException ex) {
                            throw new java.lang.reflect.UndeclaredThrowableException(ex);
                        }

                        // read until we hit the last line of the multi-line
                        // response
                        do {
                            response = rdr.readLine();
                        while (response != null && !endMultiline.matcher(response).find());
                        if (response == null) {
                            continue;
                        }
                    }
                    t = new StringTokenizer(response);
                    rc = Integer.parseInt(t.nextToken());
                    if (rc == 250) {
                        response = sendMessage(socket, rdr, "QUIT\r\n");

                        t = new StringTokenizer(response);
                        rc = Integer.parseInt(t.nextToken());

                        if (rc == 221) {
                            serviceStatus = PollStatus.available(responseTime);
                        }
                    }
}